package com.twh.www.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.twh.www.entity.WnAddress;
import com.twh.www.service.WnAddressService;
import com.twh.www.mapper.WnAddressMapper;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class WnAddressServiceImpl extends ServiceImpl<WnAddressMapper, WnAddress>
    implements WnAddressService{

    public List<WnAddress> getByUserId(Integer userId) {
        return this.lambdaQuery().eq(WnAddress::getUserId, userId).list();
    }

}




